summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx b/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx
index 49724328..ff6d24b2 100644
--- a/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx
+++ b/app/[lng]/evcp/(evcp)/(master-data)/payment-conditions/page.tsx
@@ -8,7 +8,9 @@ import { SearchParamsCache } from "@/lib/payment-terms/validations";
import { getPaymentTerms } from "@/lib/payment-terms/service";
import { PaymentTermsTable } from "@/lib/payment-terms/table/payment-terms-table";
import { InformationButton } from "@/components/information/information-button";
+import { useTranslation } from "@/i18n"
interface IndexPageProps {
+ params: Promise<{ lng: string }>
searchParams: Promise<SearchParams>;
}
@@ -16,6 +18,8 @@ export default async function IndexPage(props: IndexPageProps) {
const searchParams = await props.searchParams;
const search = SearchParamsCache.parse(searchParams);
const validFilters = getValidFilters(search.filters);
+ const {lng} = await props.params
+ const {t} = await useTranslation(lng, 'menu')
const promises = Promise.all([
getPaymentTerms({
@@ -29,7 +33,7 @@ export default async function IndexPage(props: IndexPageProps) {
<div className="flex items-center justify-between space-y-2">
<div>
<div className="flex items-center gap-2">
- <h2 className="text-2xl font-bold tracking-tight">지급 조건 관리</h2>
+ <h2 className="text-2xl font-bold tracking-tight">{t('menu.master_data.payment_conditions')}</h2>
<InformationButton pagePath="evcp/payment-conditions" />
</div>
{/* <p className="text-muted-foreground">